<td class="rootVoice ui-corner-top <?php echo $parentNav == 'users' ? 'ui-state-active nav-actived ' : null; ?>"><?php echo $html->link('Home', '/users/home'); ?></td>
<td class="rootVoice ui-corner-top <?php echo $parentNav == 'its_stocks_in' ? 'ui-state-active nav-actived ' : null; ?>"><?php echo $html->link('Stock in', '/its_stocks_in'); ?></td>
<td class="rootVoice ui-corner-top <?php echo $parentNav == 'dispatches' ? 'ui-state-active nav-actived ' : null; ?>"><?php echo $html->link('Dispatch', '/dispatches'); ?></td>
<td class="rootVoice {menu: 'its_return'} <?php echo $parentNav == 'its_returns' ? 'ui-state-active nav-actived ' : null; ?>">Return</td>
<td class="rootVoice ui-corner-top <?php echo $parentNav == 'its_inventories' ? 'ui-state-active nav-actived ' : null; ?>"><?php echo $html->link('Inventory', '/products'); ?></td>
<?php if ($session->read('Auth.User.read_message') == true) : ?>
    <td class="rootVoice ui-corner-top <?php echo $parentNav == 'messages' ? 'ui-state-active nav-actived ' : null; ?>"><?php echo $html->link('Message' . (($message_count = $this->requestAction('messages/new_message_count')) > 0 ? ' (' . $message_count . ')' : ''), '/messages'); ?></td>
<?php endif; ?>
<?php if ($session->read('Auth.User.its_report') == true) : ?>
    <td class="rootVoice {menu: 'its_report'} ui-corner-top <?php echo $parentNav == 'its_reports' ? 'ui-state-active nav-actived ' : null; ?>">Report</td>
<?php endif; ?>
<td class="rootVoice {menu: 'its_manage'} ui-corner-top <?php echo $parentNav == 'its_admins' ? 'ui-state-active nav-actived ' : null; ?>">Manage</td>

<!-- sub menu -->
<div id="its_report" class="mbmenu">
    <a class="{menu: 'sub_menu_its_report'}">ITS</a>
    <a class="{menu: 'sub_menu_customer_report'}">Customer</a>
</div>

<div id="sub_menu_its_report" class="menu hide">
    <?php echo $html->link('Stock in', array('controller' => 'its_reports', 'action' => 'stock_in_search')); ?>
    <?php echo $html->link('Dispatch', array('controller' => 'its_reports', 'action' => 'dispatch_search')); ?>
</div>

<div id="sub_menu_customer_report" class="menu hide">
    <?php echo $html->link('Stock in', array('controller' => 'its_reports', 'action' => 'cust_stock_in_search')); ?>
    <?php echo $html->link('Stock out', array('controller' => 'its_reports', 'action' => 'cust_stock_out_search')); ?>
</div>

<div id="its_manage" class="mbmenu">
    <?php echo $html->link('Customer', array('controller' => 'its_customers', 'action' => 'display')); ?>
    <?php echo $html->link('Vendor', array('controller' => 'suppliers', 'action' => 'display')); ?>
    <?php echo $html->link('Brand', array('controller' => 'brands', 'action' => 'display')); ?>
    <?php echo $html->link('Category', array('controller' => 'categories', 'action' => 'display')); ?>
    <?php echo $html->link('User', array('controller' => 'its_users', 'action' => 'display')); ?>
    <?php echo $html->link('Warehouse', array('controller' => 'warehouses', 'action' => 'display')); ?>
    <?php echo $html->link('System Preference', array('controller' => 'system_preferences', 'action' => 'display')); ?>
</div>

<div id="its_return" class="mbmenu">
    <?php echo $html->link('Dispatch Return', array('controller' => 'dispatch_returns', 'action' => 'display')); ?>
    <?php echo $html->link('Customer Return', array('controller' => 'its_retrieves', 'action' => 'display')); ?>
    <?php echo $html->link('Stock out', array('controller' => 'its_stocks_out', 'action' => 'display')); ?>
</div>
